﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections.Specialized;

using Utils;

public partial class UserControls_bizhead : BaseUserControl
{
    // Fields
    public string headlogo = "";
    protected string menuhtml = string.Empty;
    protected NameValueCollection partner = new NameValueCollection();

    // Methods
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        this.headlogo = base.ASSystem.headlogo;
        string absoluteUri = base.Request.Url.AbsoluteUri;
        if (absoluteUri.IndexOf("/biz/index.aspx") < 0)
        {
            this.menuhtml = this.menuhtml + "<li><a href=\"/biz/index.aspx\">首页</a></li>";
        }
        else
        {
            this.menuhtml = this.menuhtml + "<li class=\"current\"><a href=\"/biz/index.aspx\">首页</a></li>";
        }
        if (absoluteUri.IndexOf("/biz/settings.aspx") < 0)
        {
            this.menuhtml = this.menuhtml + "<li><a href=\"/biz/settings.aspx\">商户资料</a></li>";
        }
        else
        {
            this.menuhtml = this.menuhtml + "<li class=\"current\"><a href=\"/biz/settings.aspx\">商户资料</a></li>";
        }
        if (absoluteUri.IndexOf("/biz/coupon.aspx") < 0)
        {
            this.menuhtml = this.menuhtml + "<li><a href=\"/biz/coupon.aspx\">优惠券列表</a></li>";
        }
        else
        {
            this.menuhtml = this.menuhtml + "<li class=\"current\"><a href=\"/biz/coupon.aspx\">优惠券利表</a></li>";
        }
        this.partner = Helper.GetObjectProtery(base.CurrentPartner);
    }

}